<?php

/**
 * Project form base class.
 *
 * @package    halalmenu_dev
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormBaseTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ContactForm extends sfFormSymfony
{

    public function configure()
    {
        $this->setWidgets(array(
            'prenom'   => new sfWidgetFormInputText(),
            'nom'      => new sfWidgetFormInputText(),
            'email'    => new sfWidgetFormInputText()
           
        ));
 
        $this->setValidators(array(
            'prenom'   => new sfValidatorEmail(array('required' => 'Le champ est obligatoire')),
            'nom'      => new sfValidatorEmail(array('required' => 'Le champ est obligatoire')),
            'email'    => new sfValidatorEmail(array('required' => 'Le champ est obligatoire'))
            
        ));
    }
    
}
